package com.bblocks.dbmonitor.handler;

import com.bblocks.dbmonitor.annotation.MonitorTable;
import com.bblocks.dbmonitor.config.MonitorTableServiceInfo;
import lombok.NonNull;
import org.springframework.core.Ordered;

import java.util.Map;

/**
 * <p>Project: bblocks-pro - RecordChangedHandler</p>
 * <p>描述：数据变更处理器</p>
 *
 * @Author Zhao [125043150@qq.com]
 * @Date 2024/1/15 15:09
 * @Version 1.0
 * @since 8
 */
public abstract class RecordChangedHandler implements Ordered {

    public abstract void saved(Map<String, String> map,@NonNull MonitorTableServiceInfo monitorTableServiceInfo) ;

    public abstract void updated(Map<String, String> before, Map<String, String> after,@NonNull MonitorTableServiceInfo monitorTableServiceInfo) ;

    public abstract  void deleted(Map<String, String> map,@NonNull MonitorTableServiceInfo monitorTableServiceInfo);
}
